using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Test3 : MonoBehaviour
{
    void Start()
    {
        int x, y;
        GetValues(out x, out y);
        Debug.Log($"x = {x}, y = {y}"); // 输出 x = 10, y = 20
    }
    public void GetValues(out int a, out int b)
    {
        a = 10;
        b = 20;
    }
    void Update()
    {
        
    }
}
